<!doctype html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>党建网</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../assets/css/amazeui.css" />
    <link rel="stylesheet" href="../../assets/css/admin.css">
    <link rel="stylesheet" href="../../css/index.css">

</head>

<body>
    <!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

    <div class="content">

        <!--nav-div-->
        <div id="nav-bar" class="nav-bar"></div>
        <!--nav-div-->

        <div id="img-div"></div>

        <!--left-->
        <div id="left-div" class="left-div"></div>
        <!--left-->

        <!--content-->
        <div id="content-div" class="content-div">
            <div class="content-search-div" style="margin-bottom:20px;">
                <label>标题搜索</label>
                <input type="text" placeholder="输入要查询的标题关键字" style="margin:0px 10px" id="seaVal">
                <button type="button" class="am-btn am-btn-default am-round am-btn-xs" id="search">搜索</button>
            </div>
            <div data-am-widget="list_news" class="am-list-news am-list-news-default" >
  <!--列表标题-->
    <div class="am-list-news-hd am-cf">
       <!--带更多链接-->
          <h2>标题</h2>
          
            <span class="am-list-news-more am-fr" style="margin-right:20px;">发布时间</span>
      
          </div>

  <div class="am-list-news-bd">
  <ul class="am-list" id="sea_ul">
  </ul>
  </div>

    </div>
            
        </div>
        <!--content-->


        <!--right-->
        <div id="right-div" class="right-div"></div>
        <!--right-->
    </div>
    <!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="/assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

    <!--[if (gte IE 9)|!(IE)]><!-->
    <script src="../../assets/js/jquery.min.js"></script>
    <!--<![endif]-->
    <script src="../../assets/js/amazeui.min.js"></script>
    <script src="../../js/prevHeader.js"></script>
    <script src="../../js/jquery.zlight.menu.1.0.min.js"></script>
<script src="../../js/index.js"></script>
<script src="../../js/global.js"></script>
    <script>
        
        $("#search").on("click",function(){
            var val = $("#seaVal").val();
            if(val!=""){
            window.location.href = "search.html";
            }
        })
        
        $(document).ready(function(){
        	var val = getCookie("val");
        	//alert(val);
        	$.ajax({
      			type : "GET",
      			url : "/partyBuilding/title/"+val,
      			contentType : "application/json",
      			dataType : "json",
      			success : function(data) {
      				//alert(JSON.stringify(data));
      				
      				if(data.code == "200") {
      					seaUl(data);
      					$("#location").text("当前位置：首页 > 搜索");
      				}
      			},
      			error : function() {
      				
      			}
      		});  
        })
        
        // 通知公示
        function seaUl(data){
        	$("#sea_ul").html("");
        	$.each(data.articles, function(num, articles) {
                $("#sea_ul").append('<li class="am-g am-list-item-dated">'+
         '<a onclick="seaCont(this)" pkArticle="'+articles.pkArticle+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.artTitle+'</a>'+
         '<span class="am-list-date">'+getTime(articles.artCreateTime)+'</span>'+'</li>');
           });
        	$.each(data.vedios, function(num, vedios) {
                $("#sea_ul").append('<li class="am-g am-list-item-dated">'+
         '<a onclick="seaVid(this)" pkVedio="'+articles.pkVedio+'"class="am-list-item-hd" style="padding:5px;font-size:15px">'+articles.vedioTitle+'</a>'+
         '<span class="am-list-date">'+getTime(articles.vedioUploadTime)+'</span>'+'</li>');
           })
            
        }
    </script>

</body>

</html>